import request from '@/utils/request'

// 每日报表
export const getAgentDailyReport = (params: any) => {
  return request.get('/v1/merchant/report/getAgentDailyReport', { params: params })
}

// 全部游戏
export const getGameList = (params: any) => {
  return request.get('/v1/merchant/gameList', { params: params },)
}

// 游戏数据列表
export const getGameDetail = (params: any) => {
  return request.get('/v1/merchant/report/gameDetail', { params: params })
}
// 游戏汇总数据
export const getGameStatistic = (params: any) => {
  return request.get('/v1/merchant/report/gameStatistic', { params: params })
}

// 商户报表
export const getMerchantReport = (params: any) => {
  return request.get('/v1/merchant/report/getAgentTotalReport', { params: params })
}

// 游戏排行
export const getRankList = (params: any) => {
  return request.get('/v1/merchant/report/playerRankList', { params: params })
}

// 投注留存
export function getAgentRemainList(params: any) {
  return request.get('/v1/merchant/report/retentionAgentListNew', { params: params })
}

// 投注留存 - 商户投注留存列表
export function getRemainList(params: any) {
  return request.get('/v1/merchant/report/retentionAgentGameList', { params: params })
}

// 游戏输赢
export function getGameWin(params: any) {
  return request.get('/v1/merchant/report/roomWinLose', { params: params })
}

// 游戏输赢-高倍返奖详情
export function getGameWinDetails(params: any) {
  return request.get('/v1/merchant/report/getBonusMultipleDetails', { params: params })
}

// 游戏输赢-投注详情
export function getGearDetails(params: any) {
  return request.get('/v1/merchant/report/getRoomWinLoseGear', { params: params })
}

// 获取收款钱包地址
export function getWalletAddress(params: any) {
  return request.get('/v1/merchant/agent/getDeliveryAddress', { params: params })
}
// 设置收款钱包地址
export function addWalletAddress(data: any) {
  return request.post('/v1/merchant/agent/setDeliveryAddress',data)
}
// PDF导出 - 获取商户账单信息
export function getCheckReport(data: any) {
  return request.post('/v1/merchant/game/getAgentReportAccountBill',data)
}